package com.fortune.rainshineservice.controller;

import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.query.ServiceQuery;
import com.fortune.rainshineservice.service.IServerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: rainShine
 * @description: 服务控制器
 * @author: tangyn
 * @create: 2019-05-14
 **/
@RestController
@RequestMapping("/service")
public class ServiceController {

    @Autowired
    private IServerService serverService;

    @PostMapping("getServiceList")
    public MsgModel getServiceList(@RequestBody ServiceQuery query){
        return serverService.getServiceList(query);
    }
}
